import { DragBox } from "./types";

export const componentList = ref<DragBox[]>([]);

export const componentObj: DragBox = {
  x: 0,
  y: 0,
  w: 0,
  h: 0,
  templateId: "",
  imageSrc: "",
  id: "",
  draggable: false,
  resizable: false,
  productIds: [],
  name: "",
  z: 0,
  version: 0,
  scale: 0,
  placeholders: false
};

export const currentComponent = ref<DragBox>({
  ...componentObj
});
